package jsyf.oa.entity.wreport;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @description: 回复跟踪
 * @author: wangmin
 * @creat: on 2018-9-17
 * @since: V1.0.0
 * @see jsyf.oa.web
 */
@Entity
@Table(name = "T_WRT_UNFINISH_REPLY", schema = "oa", catalog = "")
public class WReportUnfinishReplyEntity extends BaseEntity  implements Serializable {
    private String trackId;
    private String replyContent;
    private String userId;
    private Date createTime;

    public String getTrackId() {
        return trackId;
    }

    public void setTrackId(String trackId) {
        this.trackId = trackId;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject json = new JSONObject();
        json.put("TRACK_ID","trackId");
        json.put("REPLY_CONTENT","replyContent");
        json.put("USER_ID","userId");
        json.put("CREATE_TIME","createTime");

        return json;
    }
    public JSONObject getJSONObject(){
        JSONObject obj = new JSONObject();
        obj.put("TRACK_ID",getTrackId());
        obj.put("REPLY_CONTENT",getReplyContent());
        obj.put("USER_ID",getUserId());
        obj.put("CREATE_TIME",getCreateTime());
        return  obj;
    }

    @Override
    public String getTableName() {
        return "T_WRT_UNFINISH_REPLY";
    }
}
